import request from "@/utils/request";

export function getDynamicList(params) {
  return request({
    url: "back/dynamic/dynamic?type=list",
    method: "POST",
    params
  });
}

export function deleteDynamic(params) {
  return request({
    url: "back/dynamic/dynamic?type=delete",
    method: "POST",
    params
  });
}

export function getDynamicClassList(params) {
  return request({
    url: "back/dynamic/classify?type=list",
    method: "get",
    params
  });
}

export function setDynamicClass(data) {
  return request({
    url: "back/dynamic/classify?type=save",
    method: "POST",
    data
  });
}

export function deleteDynamicClass(data) {
  return request({
    url: "back/dynamic/classify?type=delete",
    method: "POST",
    data
  });
}

export function getCollegeList(params) {
  return request({
    url: "back/dynamic/business?type=list",
    method: "get",
    params
  });
}

export function addCollege(data) {
  return request({
    url: "back/dynamic/business?type=save",
    method: "post",
    data
  });
}

export function deleteCollege(data) {
  return request({
    url: "back/dynamic/business?type=delete",
    method: "post",
    data
  });
}

export function getCollegeDetail(params) {
  return request({
    url: "back/dynamic/business?type=details",
    method: "get",
    params
  });
}

export function getArticleList(params) {
  return request({
    url: "back/dynamic/dynamic?type=articleList",
    method: "get",
    params
  });
}

export function addArticle(data) {
  return request({
    url: "back/dynamic/dynamic?type=articleAdd",
    method: "post",
    data
  });
}

export function getArticleClassifyList(params) {
  return request({
    url: "back/dynamic/dynamic?type=classifyList",
    method: "get",
    params
  });
}

export function deleteArticle(data) {
  return request({
    url: "back/dynamic/dynamic?type=articleDelete",
    method: "post",
    data
  });
}

export function getArticleDetail(params) {
  return request({
    url: "back/dynamic/dynamic?type=articleDetails",
    method: "get",
    params
  });
}

export function dynamicAudit(data) {
  return request({
    url: "back/dynamic/dynamic?type=verify",
    method: "post",
    data
  });
}
